home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ffffiiiilllleeee((((1111)))) ffffiiiilllleeee((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- _ffff_iiii_llll_eeee - determine file type
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _ffff_iiii_llll_eeee [_----_hhhh] [_----_mmmm _m_f_i_l_e] [_----_ffff _f_f_i_l_e] _a_r_g . . .
- _ffff_iiii_llll_eeee [_----_hhhh] [_----_mmmm _m_f_i_l_e] _----_ffff _f_f_i_l_e
- _ffff_iiii_llll_eeee _----_cccc [_----_mmmm _m_f_i_l_e]
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _ffff_iiii_llll_eeee performs a series of tests on each file supplied by _a_r_g and,
- optionally, on each file supplied in _f_f_i_l_e in an attempt to classify it.
- If _a_r_g appears to be a text file, _ffff_iiii_llll_eeee examines the first 512 bytes and
- tries to guess its programming language. If _a_r_g is an executable _aaaa_...._oooo_uuuu_tttt,
- _ffff_iiii_llll_eeee prints the version stamp, provided it is greater than 0. For COFF
- executables, the version stamp will give the version of compilers used to
- generate the executable. For ELF executables, the version stamp gives
- the version of ELF to which the file conforms. If _a_r_g is a symbolic
- link, by default the link is followed and _ffff_iiii_llll_eeee tests the file that the
- symbolic link references.
-
- _----_cccc Check the magic file for format errors. For reasons of
- efficiency, this validation is normally not carried out.
-
- _----_ffff _f_f_i_l_e _f_f_i_l_e contains the names of the files to be examined.
-
- _----_hhhh Do not follow symbolic links.
-
- _----_mmmm _m_f_i_l_e Use _m_f_i_l_e as an alternate magic file, instead of _////_eeee_tttt_cccc_////_mmmm_aaaa_gggg_iiii_cccc.
-
- _ffff_iiii_llll_eeee uses _////_eeee_tttt_cccc_////_mmmm_aaaa_gggg_iiii_cccc to identify files that have a magic number. A magic
- number is a numeric or string constant that indicates the file type.
- Commentary at the beginning of _////_eeee_tttt_cccc_////_mmmm_aaaa_gggg_iiii_cccc explains its format.
-
- _ffff_iiii_llll_eeee classifies files containing supplementary code set characters
- according to the locale specified in the _LLLL_CCCC______CCCC_TTTT_YYYY_PPPP_EEEE environment variable
- [see _LLLL_AAAA_NNNN_GGGG on _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5)]. _ffff_iiii_llll_eeee reads each argument and can distinguish
- data files, program text files, shell scripts, and executable files as
- follows:
- Files Classification
- _____________________________________________
- Data files containing data
- supplementary characters
- Shell scripts containing command text
- supplementary characters
- Language program text files _x_x_x text
- containing literals or
- comments using supplementary
- characters
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- ffffiiiilllleeee((((1111)))) ffffiiiilllleeee((((1111))))
-
-
-
- Executable files executable
-
- FFFFIIIILLLLEEEESSSS
- _////_eeee_tttt_cccc_////_mmmm_aaaa_gggg_iiii_cccc
- _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS_////_uuuu_xxxx_cccc_oooo_rrrr_eeee
- _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS_////_uuuu_xxxx_ssss_gggg_iiii_cccc_oooo_rrrr_eeee
- language-specific message file [See _LLLL_AAAA_NNNN_GGGG on _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5).]
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _ffff_iiii_llll_eeee_hhhh_dddd_rrrr(4)
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- If the _----_hhhh option is specified and _a_r_g is a symbolic link, _ffff_iiii_llll_eeee prints the
- error message:
- _UUUU_XXXX_::::_ffff_iiii_llll_eeee_::::_EEEE_RRRR_RRRR_OOOO_RRRR_::::_ssss_yyyy_mmmm_bbbb_oooo_llll_iiii_cccc _llll_iiii_nnnn_kkkk _tttt_oooo _a_r_g
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-